class LinkList
{
public:
    LinkList() : size(0)
    {
        head = new Node(0); // 创建一个新节点
    }
    LinkList(const LinkList &list)
    {
        size = list.size;
        Node *tp = head;
        Node *ltp = list.head->next;
        while(ltp != nullptr)
        {
            Node *newNode = new Node(ltp->data);
            tp->next = newNode;

            tp = tp->next;
            LTP = 
        }
    }
    ~LinkList()
    {
        while (head != nullptr)
        {
            Node *nextNode = head->next;
            delete head;
            head = nextNode;
        }
    }

private:
    struct Node
    {
        Node(const Elelement &data)
        {
            this->data = data;
            next = nullptr;
        }
        Elelement data; // 数据域
        Node *next;
    };
    Node *head;
    size_t size;
};